<div class="bjui-pageContent">
    <input type="hidden" name="id" value="${(agent.id)!}" />
    <div class="pageFormContent" data-layout-h="0">
        <table class="table table-condensed table-hover" width="100%">
            <tbody>
            <tr>
                <td>
                    <label for="name" class="control-label x85">代理名：</label>
                ${(agent.name)!}
                </td>
                <td>
                    <label for="ip" class="control-label x85">ip：</label>
                ${(agent.ip)!}
                </td>
                <td>
                    <label for="sysRank" class="control-label x85">系统级别：</label>
                ${(agent.sysRank)!}
                </td>
            </tr>
            <tr>
            <#--<td>
                <label for="version" class="control-label x85">版本：</label>
                 ${(agent.version)!}
                &lt;#&ndash;<input type="text" name="version" id="version" value="${(agent.version)!}"  >&ndash;&gt;
            </td>-->
                <td>
                    <label for="opSystem" class="control-label x85">操作系统：</label>
                ${(agent.opSystem)!}
                </td>

            <#-- <td>
                 <label for="groupType" class="control-label x85">分组：</label>
             ${(agent.gtype.value)!}
             &lt;#&ndash;<input type="text" name="groupId" id="groupId" value="${(agent.groupId)!}" data-rule="required" >&ndash;&gt;
                 &lt;#&ndash;<select name="groupType" id="groupType" data-toggle="selectpicker">
                     <option value="">请选择</option>
                 <#list groupTypes as gtype>
                     <option value="${(gtype.value)!}" <#if gtype??&&agent.groupType??&&gtype.value==agent.groupType.value>selected</#if>>${(gtype.value)!}</option>
                 </#list>
                 </select>&ndash;&gt;
             &lt;#&ndash;<@p.selector groupTypes 'name' 'name' agent 'groupType' 'groupTypeName'/>&ndash;&gt;
             </td>-->
                <td>
                    <label for="bizUnitId" class="control-label x85">业务单元：</label>
                ${(agent.bizUnitName)!}
                    <#--<select name="bizUnitId" id="bizUnitId" data-toggle="selectpicker" onchange="$('#bizUnitName_').val(this.options[this.selectedIndex].text) ">-->
                    <#--&lt;#&ndash;<option value="">请选择</option>&ndash;&gt;-->
                        <#--<#list units as unit>-->
                    <#--&lt;#&ndash;<option value="${(unit.id)!}" <#if unit??&&unit.id??&&agent.bizUnitId??&&unit.id==agent.bizUnitId>selected</#if>>${(unit.unitName)!}</option>&ndash;&gt;-->
                    <#--${(agent.bizUnitName)!}-->
                    <#--</#list>-->
                    <#--</select>-->
                <#--<input type="hidden" name="bizUnitName" id="bizUnitName_" value="${(agent.bizUnitName)!}"  >-->
                </td>
                <th>
                    是否启用：
                    <#if agent.enable>是<#else>否</#if>
                </th>
            </tr>
            <tr>
            </tbody>
        </table>
    </div>
</div>
<script>
    function genPass()
    {
        var pass = $('#password').val();
        $.ajax({
            url: "/admin/pass/encrypt"
            , type: "POST"
            , data: "pass="+pass
            , success: function( data, textStatus, jqXHR ){
                $('#password').val(data)
            }
        });
    }
</script>